package com.rajesh.messageservice.bean;

import net.sqlcipher.Cursor;

public class Message extends WxDbBean {
    private String msgId;
    private String msgSvrId;
    private String type;
    private String status;
    private String isSend;
    private String isShowTimer;
    private String createTime;
    private String talker;
    private String content;
    private String imgPath;
    private String reserved;
    private byte[] lvbuffer;
    private String transContent;
    private String transBrandWording;
    private String talkerId;
    private String bizClientMsgId;
    private String bizChatId;
    private String bizChatUserId;
    private String msgSeq;
    private String flag;
    private String userId;

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getMsgSvrId() {
        return msgSvrId;
    }

    public void setMsgSvrId(String msgSvrId) {
        this.msgSvrId = msgSvrId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIsSend() {
        return isSend;
    }

    public void setIsSend(String isSend) {
        this.isSend = isSend;
    }

    public String getIsShowTimer() {
        return isShowTimer;
    }

    public void setIsShowTimer(String isShowTimer) {
        this.isShowTimer = isShowTimer;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getTalker() {
        return talker;
    }

    public void setTalker(String talker) {
        this.talker = talker;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getReserved() {
        return reserved;
    }

    public void setReserved(String reserved) {
        this.reserved = reserved;
    }

    public byte[] getLvbuffer() {
        return lvbuffer;
    }

    public void setLvbuffer(byte[] lvbuffer) {
        this.lvbuffer = lvbuffer;
    }

    public String getTransContent() {
        return transContent;
    }

    public void setTransContent(String transContent) {
        this.transContent = transContent;
    }

    public String getTransBrandWording() {
        return transBrandWording;
    }

    public void setTransBrandWording(String transBrandWording) {
        this.transBrandWording = transBrandWording;
    }

    public String getTalkerId() {
        return talkerId;
    }

    public void setTalkerId(String talkerId) {
        this.talkerId = talkerId;
    }

    public String getBizClientMsgId() {
        return bizClientMsgId;
    }

    public void setBizClientMsgId(String bizClientMsgId) {
        this.bizClientMsgId = bizClientMsgId;
    }

    public String getBizChatId() {
        return bizChatId;
    }

    public void setBizChatId(String bizChatId) {
        this.bizChatId = bizChatId;
    }

    public String getBizChatUserId() {
        return bizChatUserId;
    }

    public void setBizChatUserId(String bizChatUserId) {
        this.bizChatUserId = bizChatUserId;
    }

    public String getMsgSeq() {
        return msgSeq;
    }

    public void setMsgSeq(String msgSeq) {
        this.msgSeq = msgSeq;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getUserId(){ return userId; }

    public void setUserId(String userId){ this.userId = userId; }

    public Message(){}

    public Message(String msgId, String msgSvrId, String type, String status, String isSend, String isShowTimer, String createTime, String talker, String content, String imgPath, String reserved, byte[] lvbuffer, String transContent, String transBrandWording, String talkerId, String bizClientId, String bizChatId, String bizChatUserId, String msgSeq, String flag, String userId) {
        this.msgId = msgId;
        this.msgSvrId = msgSvrId;
        this.type = type;
        this.status = status;
        this.isSend = isSend;
        this.isShowTimer = isShowTimer;
        this.createTime = createTime;
        this.talker = talker;
        this.content = content;
        this.imgPath = imgPath;
        this.reserved = reserved;
        this.lvbuffer = lvbuffer;
        this.transContent = transContent;
        this.transBrandWording = transBrandWording;
        this.talkerId = talkerId;
        this.bizClientMsgId = bizClientId;
        this.bizChatId = bizChatId;
        this.bizChatUserId = bizChatUserId;
        this.msgSeq = msgSeq;
        this.flag = flag;
        this.userId = userId;
    }

    @Override
    public WxDbBean translate(Cursor cursor) {
        if(cursor != null){
            this.msgId = cursor.getString(cursor.getColumnIndex("msgId"));
            this.msgSvrId = cursor.getString(cursor.getColumnIndex("msgSvrId"));
            this.type = cursor.getString(cursor.getColumnIndex("type"));
            this.status = cursor.getString(cursor.getColumnIndex("status"));
            this.isSend = cursor.getString(cursor.getColumnIndex("isSend"));
            this.isShowTimer = cursor.getString(cursor.getColumnIndex("isShowTimer"));
            this.createTime = cursor.getString(cursor.getColumnIndex("createTime"));
            this.talker = cursor.getString(cursor.getColumnIndex("talker"));
            this.content = cursor.getString(cursor.getColumnIndex("content"));
            this.imgPath = cursor.getString(cursor.getColumnIndex("imgPath"));
            this.reserved = cursor.getString(cursor.getColumnIndex("reserved"));
            this.lvbuffer = cursor.getBlob(cursor.getColumnIndex("lvbuffer"));
            this.transContent = cursor.getString(cursor.getColumnIndex("transContent"));
            this.transBrandWording = cursor.getString(cursor.getColumnIndex("transBrandWording"));
            this.talkerId = cursor.getString(cursor.getColumnIndex("talkerId"));
            this.bizClientMsgId = cursor.getString(cursor.getColumnIndex("bizClientMsgId"));
            this.bizChatId = cursor.getString(cursor.getColumnIndex("bizChatId"));
            this.bizChatUserId = cursor.getString(cursor.getColumnIndex("bizChatUserId"));
            this.msgSeq = cursor.getString(cursor.getColumnIndex("msgSeq"));
            this.flag = cursor.getString(cursor.getColumnIndex("flag"));
            this.userId = cursor.getString(cursor.getColumnIndex("userId"));
        }
        return this;
    }
}
